﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DataAccessLayer;
using System.Data;
using System.Data.OleDb;
using InfoLayer;

namespace ControlLayer
{
    public class HoaDonControl
    {
        private HoaDonDataAccess HoaDonDA = new HoaDonDataAccess();

        public DataTable LayBangDanhSachHoaDon()
        {
            return HoaDonDA.LayBangDanhSachHoaDon();
        }

        public void Insert(ref HoaDonInfo hoaDonInfo)
        {
            HoaDonDA.Insert(ref hoaDonInfo);
        }

        public void Update(HoaDonInfo hoaDonInfo)
        {
            HoaDonDA.Update(hoaDonInfo);
        }

        public void Delete(HoaDonInfo hoaDonInfo)
        {
            HoaDonDA.Delete(hoaDonInfo);
        }

        public string TaoMaTuDong(string maGoc, int batDau)
        {
            return HoaDonDA.TaoMaTuDong(maGoc, batDau);
        }

        public DataTable LayDonGia(LoaiPhongInfo loaiPhongInfo, String _MaLoaiPhong)
        {
            return HoaDonDA.LayDonGia(loaiPhongInfo, _MaLoaiPhong);
        }

        public DataTable Timkiemphong(String tungay, String denngay)
        {
            return HoaDonDA.Timkiemphong(tungay, denngay);
        }


    }
}
